// #define quickread
#ifdef quickread
#include <cstdio> 
template <typename T>
inline void read(T& x)
{
    int c=getchar(), f=1; x=0;
    while(c<'0'||'9'<c) {if(c=='-') f=-1; c=getchar();}
    while('0'<=c&&c<='9') 
        x=(x<<3)+(x<<1)+c-'0', c=getchar();
    x*=f;
}
template <typename T>
inline void quickwrite(T x)
{
    if(x<0) putchar('-'), x*=-1;
    if(x>=10) quickwrite(x/10);
    putchar(x%10+'0');
}
#else 
#include <iostream>
#endif
#include <string>
using namespace std;
#define DEBUG

int n, k, one;
string s;

void solve()
{
    // init();
    one=0;
    cin >> n >> k; cin >> s;
    for(char ch:s)
        one+=ch=='1';

    // Alice选择one个"1"转为0直接获胜 Bob无论怎么操作都会减少贡献(Alice可以在第一步把"1"只保留k个以下)
    cout << (one<=k||n<2*k?"Alice":"Bob") << endl;
    // printf("%s\n%d<=%d||%d<%d %d||%d\n", s.c_str(), one, k, n, 2*k, one<=k,n<2*k);
}

// #undef DEBUG
signed main()
{
    #ifdef DEBUG
        freopen("../in.txt", "r", stdin);
        freopen("../out.txt", "w", stdout);
    #endif
    #ifndef quickread
    // ios::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
    #endif

    int T=1; scanf("%d", &T);
    while(T--) 
    {
        solve();
    }
    return 0;
}
